#pragma once

#include <QtWidgets/QMainWindow>
#include "ui_QtHttp.h"
class QNetworkReply;
class QFile;
class QJsonObject;

class QtHttp : public QMainWindow
{
    Q_OBJECT

public:
    QtHttp(QWidget *parent = Q_NULLPTR);
private slots:
	void SendImage();
	void slotSaveFile();
private:
	QJsonObject getTableData(QTableWidget* table);
	QJsonObject QtHttp::getContextData(QTableWidget* table);
	QString getTemplateData(QTableWidget* table);
private:
    Ui::QtHttpClass ui;
	QByteArray buffer[1024*10];
	QNetworkReply* reply = nullptr;
	QFile* outfile=nullptr;
};
